From: Richard M. Stallman Date: Sun, 11 Mar 2007 21:16:51 +0000 (+0000) Subject: (type-break-get-previous-count): Repeat previous change here. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~1612 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=aa657633c3821427ffd7d0bcbc4eb076664faaf3;p=emacs.git (type-break-get-previous-count): Repeat previous change here. --- diff --git a/lisp/type-break.el b/lisp/type-break.el index e915ab2d1fb..e065e32df54 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el @@ -579,10 +579,13 @@ integer." (setq file (with-current-buffer (find-file-noselect file 'nowarn) - (save-excursion - (goto-char (point-min)) - (forward-line 1) - (read (current-buffer))))))) + (condition-case nil + (save-excursion + (goto-char (point-min)) + (forward-line 1) + (read (current-buffer))) + (end-of-file + (error "End of file in `%s'" file))))))) file 0)))